<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%>
<%@ taglib uri="/WEB-INF/tld/fmt.tld" prefix="fmt"%>

<table id="listCertificationList" cellpadding = "0" cellspacing = "0">
	<thead>
		<tr>
			<td class="rvimscheckbox"><input type="checkbox" onclick="selectAllForList('listCertificationList')"></td>
			<td>检定证号</td>
			<td>检定单位</td>
			<td>器具编号</td>
			<td>型号/规格</td>
			<td>检定日期</td>
			<td>过期日期</td>
			<td>操作</td>
		</tr>
	</thead>
	<tbody>
		<c:forEach items="${listCertification.results}" var="certification">
			<tr id="objId_${certification.id}">
				<td><input type="checkbox" name="certificationIds" value="<c:out value='${certification.id}'/>"></td>
				<td><c:out value="${certification.certificatecode}"/></td>
				<td><c:out value="${certification.verificationunit}"/></td>
				<td><c:out value="${certification.controlid}"/></td>
				<td><c:out value="${certification.standard}"/></td>
				<td><fmt:formatDate value='${certification.certificatedate}' pattern='yyyy-MM-dd'/></td>
				<td><fmt:formatDate value='${certification.expiredate}' pattern='yyyy-MM-dd'/></td>
				<td class="rvimsoperation">
					<a href="javascript:ajaxShowCertificationView('${certification.id}')" title="详细信息"><span class="ui-icon ui-icon-document"></span></a> 
					<a href="javascript:ajaxShowCertificationEdit('${certification.id}')" title="修改"><span class="ui-icon ui-icon-pencil"></span></a> 
					<a href="javascript:ajaxDeleteCertificationById('${certification.id}')" title="删除"><span class="ui-icon ui-icon-trash"></span></a>
				</td>
			</tr>
		</c:forEach>
	</tbody>
</table>
<div id="rvimsPaginationPanel"></div>
<div id="dialog2"></div>
<script type="text/javascript">
	setTableCSS("listCertificationList");
	setPagination("rvimsPaginationPanel","${listCertification.pagination.totalPages}","${listCertification.pagination.currentPage}","${listCertification.pagination.pageSize}","${listCertification.pagination.totalRows}",ajaxFindCertificationSearchList);
</script>